package com.suxin.logger;

/**
 * @author Tang
 * @classname Level
 * @description [ 日志等级 ]
 * @date 2022/4/26 22:15
 */
public class Level {

    private final String name;

    private final int value;

    public static final Level OFF = new Level("OFF", Integer.MAX_VALUE);

    public static final Level WARNING = new Level("WARNING", 900);

    public static final Level INFO = new Level("INFO", 800);

    public static final Level CONFIG = new Level("CONFIG", 700);

    private Level(String name, int value) {
        this.name = name;
        this.value = value;
    }


    public int getValue() {
        return value;
    }
}